package _11_整理题目._整理基础._OOM异常;

import lombok.var;
import org.junit.Test;

public class _05_QueryMem {

    @Test
    public void test_01() {
        long initialMemory = Runtime.getRuntime().totalMemory() / 1024 / 1024;
        long maxMemory = Runtime.getRuntime().maxMemory() / 1024 / 1024;
        System.out.println("initialMemory = " + initialMemory + " MB");
        System.out.println("maxMemory = " + maxMemory + " MB");
    }

}
